<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>测试浏览器宽高</title>
		<style type="text/css">
			div{
				width: 200px;
				height: 200px;
			}
			@media screen and (min-width:1000px){
				div{
					background-color: lightcoral;
				}
			}
			@media screen and (min-width:800px) and (max-width:1000px) {
				div{
					background-color: aquamarine;
				}
			}
			@media screen and (min-width:200px) and (max-width:799px) {
				div{
					background-color: blueviolet;
				}
			}
			@media screen (max-width:199px) {
				div{
					background-color: yellow;
				}
			}
		</style>
	</head>
	<body>
		<div id="a">
			
		</div>
	</body>
</html>
